package timing.ukulele.item.persistent;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import timing.ukulele.persistent.model.BaseIdWorkerModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(description = "事项")
@TableName("c_item")
public class Item extends BaseIdWorkerModel {

    @TableField("name")
    @ApiModelProperty(value = "事项名称")
    private String name;

    @TableField("code")
    @ApiModelProperty(value = "事项编码")
    private String code;

    @TableField("system_id")
    @ApiModelProperty(value = "系统id")
    private Long systemId;

    @TableField("flow_id")
    @ApiModelProperty(value = "流程id")
    private Long flowId;

    @TableField("template_id")
    @ApiModelProperty(value = "表单模板ID")
    private Long templateId;

    @TableField(exist = false)
    @ApiModelProperty(value = "业务系统名称")
    private String systemName;

    @TableField(exist = false)
    @ApiModelProperty(value = "模板名称")
    private String templateName;

    @TableField(exist = false)
    @ApiModelProperty(value = "流程名称")
    private String flowName;

}
